using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAOLayer;
using DTOLayer;

namespace BUSLayer
{
    public class TacGiaBUS:AbstractBus
    {
        public int TestExisted(TacGiaDTO dto)
        {
            TacGiaDAO dao = new TacGiaDAO();
            return dao.TestExisted(dto);
        }
        public int InsertTacGia(TacGiaDTO dto)
        {
            TacGiaDAO dao = new TacGiaDAO();
            return dao.InsertTacGia(dto);
        }
        public int DeleteTacGia(int dto)
        {
            TacGiaDAO dao = new TacGiaDAO();
            return dao.DeleteTacGia(dto);
        }
        public int UpdateTacGia(TacGiaDTO dto)
        {
            TacGiaDAO dao = new TacGiaDAO();
            return dao.UpdateTacGia(dto);
        }
        public DataTable LayDanhSach()
        {
            TacGiaDAO dao = new TacGiaDAO();
            return dao.LayDanhSach();
        }

    }
}
